#!/bin/bash

# Builds a nodes file. Just to automate config.

NODE_COUNT=$1
OUTPUT="./control/nodes"
echo $OUTPUT
# remove original nodes
rm -f $OUTPUT
touch $OUTPUT

for ((n=1;n<NODE_COUNT;n++))
do
  echo "n"$n >> $OUTPUT
done

echo -n "n"$NODE_COUNT >> $OUTPUT
